package com.jmlee.pojo;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description 订单实体类
 * @Author jmLee
 * @Date 2021/3/10 18:55
 * @Version 1.0
 */
public class Orders {

    private Long id;

    private Long userId;
    private String receiverName;        // 收货人快照,脱敏处理
    private String receiverMobile;      // 收货人手机号快照
    private String receiverAddress;     // 收货地址快照
    private Integer totalAmount;        // 订单总价格
    private Integer realPayAmount;      // 实际支付总价格
    private Integer postAmount;         // 配送费 默认可以为0,代表包邮
    private Integer payMethod;          // 支付方式 1:微信 2:支付宝
    private String leftMsg;             // 买家留言
    private String extend;              // 扩展字段
    private Integer isComment;          // 买家是否评价 1：已评价,0：未评价
    private Integer isDelete;           // 逻辑删除状态 1: 删除 0:未删除' ,
    private Date createdTime;           // 创建时间（成交时间）
    private Long shopId;                // 商铺Id（超市Id）
    private Long riderId;               // 骑手Id

    private BigDecimal receiverLatitude;  // 收货人地址纬度
    private BigDecimal receiverLongitude; // 收货人地址经度

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public String getReceiverMobile() {
        return receiverMobile;
    }

    public void setReceiverMobile(String receiverMobile) {
        this.receiverMobile = receiverMobile;
    }

    public String getReceiverAddress() {
        return receiverAddress;
    }

    public void setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
    }

    public Integer getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Integer totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Integer getRealPayAmount() {
        return realPayAmount;
    }

    public void setRealPayAmount(Integer realPayAmount) {
        this.realPayAmount = realPayAmount;
    }

    public Integer getPostAmount() {
        return postAmount;
    }

    public void setPostAmount(Integer postAmount) {
        this.postAmount = postAmount;
    }

    public Integer getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(Integer payMethod) {
        this.payMethod = payMethod;
    }

    public String getLeftMsg() {
        return leftMsg;
    }

    public void setLeftMsg(String leftMsg) {
        this.leftMsg = leftMsg;
    }

    public String getExtend() {
        return extend;
    }

    public void setExtend(String extend) {
        this.extend = extend;
    }

    public Integer getIsComment() {
        return isComment;
    }

    public void setIsComment(Integer isComment) {
        this.isComment = isComment;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long getRiderId() {
        return riderId;
    }

    public void setRiderId(Long riderId) {
        this.riderId = riderId;
    }

    public BigDecimal getReceiverLatitude() {
        return receiverLatitude;
    }

    public void setReceiverLatitude(BigDecimal receiverLatitude) {
        this.receiverLatitude = receiverLatitude;
    }

    public BigDecimal getReceiverLongitude() {
        return receiverLongitude;
    }

    public void setReceiverLongitude(BigDecimal receiverLongitude) {
        this.receiverLongitude = receiverLongitude;
    }
}
